import request from '@/utils/request'

// 查询资产报废列表
export function listAssetDeclared(query) {
  return request({
    url: '/module/AssetDeclared/list',
    method: 'get',
    params: query
  })
}

// 查询资产报废详细
export function getAssetDeclared(id) {
  return request({
    url: '/module/AssetDeclared/' + id,
    method: 'get'
  })
}

// 新增资产报废
export function addAssetDeclared(data) {
  return request({
    url: '/module/AssetDeclared',
    method: 'post',
    data: data
  })
}

// 修改资产报废
export function updateAssetDeclared(data) {
  return request({
    url: '/module/AssetDeclared',
    method: 'put',
    data: data
  })
}

// 删除资产报废
export function delAssetDeclared(id) {
  return request({
    url: '/module/AssetDeclared/' + id,
    method: 'delete'
  })
}
